package com.jeason.blogmpg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.*;
/**
 * <p>
 * 友情链接表
 * </p>
 *
 * @author jeason
 * @since 2021-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_link")
@ApiModel(value="Link对象", description="友情链接表")
public class Link implements Serializable {
    /**
     * 网站图标URL 【该字段不存入数据库】
     */
    @TableField(exist = false)
    private List<String> photoList;


    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "唯一uid")
    @TableId(value = "uid", type = IdType.UUID)
    private String uid;

    @ApiModelProperty(value = "友情链接标题")
    private String title;

    @ApiModelProperty(value = "友情链接介绍")
    private String summary;

    @ApiModelProperty(value = "友情链接URL")
    private String url;

    @ApiModelProperty(value = "点击数")
    private Integer clickCount;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "排序字段，越大越靠前")
    private Integer sort;

    @ApiModelProperty(value = "友链状态： 0 申请中， 1：已上线，  2：已下架")
    private Integer linkStatus;

    @ApiModelProperty(value = "申请用户UID")
    private String userUid;

    @ApiModelProperty(value = "操作管理员UID")
    private String adminUid;

    @ApiModelProperty(value = "站长邮箱")
    private String email;

    @ApiModelProperty(value = "网站图标")
    private String fileUid;


}
